#@head() #@header()
<title>客户列表</title>
#@aside("user")
<script type="text/javascript" src="#(path)/assets/js/jquery.tmpl.min.js"></script>
<style>
	.box-body{padding:5px !important}
</style>
<div class="content-wrapper">
	<section class="content">
	<div class="nav-tabs-custom">
		#@usermenu("khxx")
		
		<div class="tab-content">
		  <div class="tab-pane active" id="tab_1">
			<div class="box-body">
			<table id="example1" class="table table-bordered table-striped dataTable col-md-8" role="grid" aria-describedby="example1_info">
				<tbody>
				<tr role="row" class="even">
				  <td align="right" style="width:150px;" class="sorting_1">资金账户：</td>
				  <td id="code" class="sorting_1"></td>
				</tr>
				<tr role="row" class="odd">
				  <td align="right" style="width:150px;" class="sorting_1">账户状态：</td>
				  <td id="status1" class="sorting_1"></td>
				</tr>
				<tr role="row" class="card odd">
				  <td align="right" style="width:150px;" class="sorting_1">开户时间：</td>
				  <td id="bind_card_time" class="sorting_1"></td>
				</tr>
				<tr role="row" class="card odd">
				  <td align="right" style="width:150px;" class="sorting_1">银行：</td>
				  <td id="bank_name" class="sorting_1"></td>
				</tr>
				<tr role="row" class="card even">
				  <td align="right" style="width:150px;" class="sorting_1">开户地：</td>
				  <td class="sorting_1"><a id="province" style="margin-right:10px;"></a> <a id="city"></a></td>
				</tr> 
				<tr role="row" class="card even">
				  <td align="right" style="width:150px;" class="sorting_1">卡号：</td>
				  <td id="bank_account" class="sorting_1"></td>
				</tr>
				<tr role="row" class="card odd">
				  <td align="right" style="width:150px;" class="sorting_1">开户姓名：</td>
				  <td id="account_name" class="sorting_1"></td>
				</tr>
				<tr role="row" class="odd">
				  <td align="right" style="width:150px;" class="sorting_1">委托扣款：</td>
				  <td id="quota_status" class="sorting_1"></td>
				</tr>
				<tr hidden id="quota_div" role="row" class="odd">
				  <td align="right" style="width:150px;" class="sorting_1">委托扣款单笔限额：</td>
				  <td id="quota" class="sorting_1"></td>
				</tr>
				<tr hidden id="day_quota_div" role="row" class="odd">
				  <td align="right" style="width:150px;" class="sorting_1">委托扣款每日限额：</td>
				  <td id="day_quota" class="sorting_1"></td>
				</tr>
				</tbody>
			</table>
			</div>
		</div>
	</div>
	</section>
</div>
#@footer()
<script>
$(document).ready(function(){
	$.getJSON("/user/fullInfo?token=#(session.token??)&id="+id.id, function(userinfo) {
		 
		setFormVals(userinfo.data.info);
		$("#mobile").html(userinfo.data.info.mobile)
		$("#bind_card_time").html(userinfo.data.info.bind_card_time)
		if(userinfo.data.info.is_withhold_authority=='1'){
			$("#quota_status").html('开通');
			$("#quota_div").show();
			$("#day_quota_div").show();
			if(userinfo.data.info.day_quota == "++"){$("#day_quota").html("无限制")} else{ $("#day_quota").html(userinfo.data.info.day_quota)}
			if(userinfo.data.info.quota == "++"){$("#quota").html("无限制")} else{ $("#quota").html(userinfo.data.info.quota)}
		}else{
			$("#quota_div").hide();
			$("#day_quota_div").hide();
			$("#quota_status").html('未开通');
		}
	});
	$.getJSON("/card/mainCard?token=#(session.token??)&userId="+id.id, function(cardinfo) {
		if(!$.isBlank(cardinfo.data.card)){
			$(".card").show();
			$("#bank_name").html(cardinfo.data.card.bank_name);
			$("#province").html(cardinfo.data.card.province);
			$("#city").html(cardinfo.data.card.city);
			$("#bank_account").html(cardinfo.data.card.bank_account);
			$("#account_name").html(cardinfo.data.card.account_name);
			$("#status1").html(cardinfo.data.card.status=="enable"?"启用":"未启用");
		}else{
			$(".card").hide();
			$("#status1").html("未开户");
		}
	});
	//menu
});
</script>
</body>
</html>